package com.feicheng.persistence.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.feicheng.persistence.entity.Astore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 门店 Mapper 接口
 * </p>
 *
 * @author cailongyang
 * @since 2025-04-02
 */
public interface AstoreMapper extends BaseMapper<Astore> {

    List<JSONObject> getFjStores(@Param("radius") Integer radius, @Param("jd") String jd, @Param("wd") String wd);

    /* wumingxia start*/
    IPage getStoreWithDzByPage(IPage page, @Param(Constants.WRAPPER) Wrapper wrapper, @Param("jd") String jd, @Param("wd") String wd);

    List<JSONObject> getAllStore(@Param(Constants.WRAPPER) Wrapper wrapper);

    //计算门店营业额
    List<JSONObject> getAllStoreMoney();


    /* jinjingyi start*/
    Double getMdMoney();

    Double getMdTotal();
    /* jinjingyi end*/

    /* zhoujunying start*/
    List<JSONObject> getMdsWithAmont();
    /* zhoujunying end*/
}
